5 export DEFINES="-mmcu=attiny84 -DF_CPU=16000000UL -DBOARD=1 -fno-strict-aliasing"
7 # export PATH=$PATH:/usr/local/avr/bin
11 # /usr/local/avr/bin/avr-gcc
13 avr-gcc $DEFINES -Wall -O1 -std=gnu99 -o $targetProjectFile.o -c $targetProjectFile.c
14 avr-gcc $DEFINES -Wl,-Map=$targetProjectFile.map $targetProjectFile.o -o $targetProjectFile.elf
15 avr-objcopy -O ihex -R .eeprom $targetProjectFile.elf $targetProjectFile.hex